Reworking fix of unstable GitConfig parsing#43
Conversation
… TreeMap since Ini is technically multi-map and this wrapping can cause data loss. Though this is unlikely the case for remotes, branches and urls, since section name in their case contains name parameter. But anyway better to sort parsed data. Also replacing static final nested config classes with records.
|
@claude review pr with inline comments |
|
Claude finished @unv-unv's task in 4m 36s —— View job PR Review: Reworking fix for unstable GitConfig parsing
Overall this is a clean, well-targeted refactor. Dropping the Inline comments (2):
Notes
Nothing blocking here — the single 🟡 item is a judgment call you've already reasoned about in the PR description. Looks good to merge. 👍 |
| ) { | ||
| Collection<BranchConfig> configs = new ArrayList<>(); | ||
| private static Collection<BranchConfig> parseTrackedInfos(@Nonnull Ini ini, @Nonnull ClassLoader classLoader) { | ||
| Collection<BranchConfig> configs = new TreeSet<>(); |
There was a problem hiding this comment.
@/home/runner/.claude/projects/-home-runner-work-consulo-git-consulo-git/memory/c1body.md
| } | ||
|
|
||
| @Override | ||
| public int compareTo(Remote that) { |
There was a problem hiding this comment.
@/home/runner/.claude/projects/-home-runner-work-consulo-git-consulo-git/memory/c2body.md
Avoid wrapping Ini with TreeMap since Ini is technically multi-map and this wrapping can cause data loss. Though this is unlikely the case for remotes, branches and urls, since section name in their case contains name parameter. But anyway better to sort parsed data. Also replacing static final nested config classes with records.